package com.modele.entity;

import java.util.List;

/**
 * @author Haniki
 *
 */
public class Recapitulatif {

	private int idRecap;
	private List <Commande> listCommandes;
	
	
	public Recapitulatif (List <Commande> list) {
		
		listCommandes = list;
	}
	
	public Recapitulatif (int idRecap, List <Commande> list) {
		
		this(list);
		this.setIdRecap(idRecap);
	}
	
	public Recapitulatif (Commande commande) {
		
		listCommandes.add(commande);
		
	}

	public List <Commande> getListCommandes() {
		return listCommandes;
	}

	public void setListCommandes(List <Commande> listCommandes) {
		this.listCommandes = listCommandes;
	}

	public int getIdRecap() {
		return idRecap;
	}

	public void setIdRecap(int idRecap) {
		this.idRecap = idRecap;
	}
	
	
}
